﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


using KingRoad.EPM.PersonnelLogEntity.Model;
using Unis.Framework.Core.Utility;
using KingRoad.EPM.PersonnelLogDAL.ProjectVerifyService;


namespace KingRoad.EPM.PersonnelLogBLL.UIRules
{
    /// <summary> 
    /// 客户端业务处理类。 
    /// 文件生成时间 2017/1/12 13:59:27
    /// </summary> 
    public class ProjectVerifyUIRule
    {
        private readonly IProjectVerifyService _projectVerifyService;
        
        
        public ProjectVerifyUIRule(){}
        
        /// <summary> 
        /// construct function... 
        /// </summary> 
        public ProjectVerifyUIRule(IProjectVerifyService  projectVerifyService)
        {
           _projectVerifyService=projectVerifyService;
        }
      /// <summary>
      /// 获取中心实验室信息
      /// </summary>
      /// <returns></returns>
        public List<ProjectVerifyInfo> GetAllSupervisionInfo()
        {
            var list = _projectVerifyService.GetEntityList();
            return list;
        }
        /// <summary>
        /// 根据条件查询List信息(分页)
        /// </summary>
        /// <param name="numCurrentPage">当前页</param>
        /// <param name="numPerPage">每页数据大小</param>
        /// <param name="orderByField">排序字段名称</param>
        /// <param name="totalRecord">总数据量</param>
        /// <param name="sqlCondition">sql查询条件</param>
        /// <returns></returns>
        public List<ProjectVerifyInfo> GetListForPage(int numCurrentPage, int numPerPage,
                                                                        string orderByField, out int totalRecord, string sqlCondition, string desc = "desc")
        {
            var list = _projectVerifyService.GetEntityListByContionRe(numCurrentPage, numPerPage, orderByField, out totalRecord, sqlCondition, desc);
            return list;
        }
    }
}
